﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace ResourceLoadBalancer.WebServices.Contracts.Data
{
    [DataContract]
    public class ChunkDataContract
    {
        ResourceURIDataContract location;
        int offset;
        int size;

        public ChunkDataContract(ResourceURIDataContract location,
                                int offset,
                                int size)
        {
            this.location = location;
            this.size = size;
            this.offset = offset;
        }

        [DataMember]
        public ResourceURIDataContract Location
        {
            get { return location; }
            set { location = value; }
        }

        [DataMember]
        public int Offset
        {
            get { return offset; }
            set { offset = value; }
        }

        [DataMember]
        public int Size
        {
            get { return size; }
            set { size = value; }
        }
    }
}
